shadow-box: Bail out blur early if radius is 1px
authorAlexander Larsson <alexl@redhat.com>
Fri, 20 Mar 2015 13:31:57 +0000 (14:31 +0100)
committerAlexander Larsson <alexl@redhat.com>
Sat, 21 Mar 2015 20:07:26 +0000 (21:07 +0100)
commit9c2a16fb3be9bfe1a4e0e30bc7aa6de298541867
tree36473d803243ca361d237c5a2f18e7773dea2ebc
parentd0dc1f52cc41a6c5a881123056e97cf4dfbebea4
shadow-box: Bail out blur early if radius is 1px

For radius 1px the current implementation rounds down to a 1 px box
filter which is a no-op. Rather than creating useless shadow masks
in this case we bail out blurring early.

Another alternative would be to make radius 1px round up to a 2 px box
filter, but that would change the rendering of Adwaita which is probably
not a great idea this late in the cycle.

https://bugzilla.gnome.org/show_bug.cgi?id=746468
gtk/gtkcairoblur.c
gtk/gtkcssshadowvalue.c